package chapter4.injection_contructure;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class HelloworkMessageProvider implements MessageProvider {
	private String mesage;

	public HelloworkMessageProvider() {
	}

	@Autowired
	public HelloworkMessageProvider(String mesages) {
		this.mesage = mesages;
	}

	@Override
	public String getMessage() {
		return mesage;
	}

}
